<!-- 
 Copyright 2008 Carnegie-Mellon University
 Licensed under the Apache License, Version 2.0 (the "License"); 
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
  
   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, 
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied. See the License for the
 specific language governing permissions and limitations
 under the License.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<script type="text/javascript" src="../js/external/jquery.js"></script>
<script type="text/javascript"><!-- jQuery.noConflict(); //--></script>
<script type="text/javascript" src="../js/external/prototype.js"></script>
<script type="text/javascript" src="../js/resources.js.jsp"></script>
<script type="text/javascript" src="../js/shared.js"></script>
<script type="text/javascript" src="../js/evaluation_shared.js"></script>
<script type="text/javascript" src="../js/qa_evaluation.js"></script>
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<link rel="stylesheet" href="../css/qa_evaluation.css" type="text/css" />
<title id="title"></title>
</head>
<body onLoad="init()">

<!-- NAVIGATION -->
<div id="header"></div>

<table width="900"  border="0" align="center" cellpadding="3" cellspacing="0">
  <tr>
    <td colspan="2">Select a pool and then topic and you will see system responses to judge. For each system response, judge if it contains nuggets in meaning level.</td>
  </tr>
  <tr>
    <td>Topic:</td>
    <td><select id="topicList" style="width:600px" onchange="topicSelected(this.value)"></select></td> 
  </tr>
  <tr>
    <td>Pool:</td>
    <td><select id="poolList" style="width:600px" onchange="topicAndPoolSelected($('topicList').value,this.value)"></select></td>     
  </tr>
</table>

<div id="loading" style="display:none">Loading ...</div>
<div id="main_block" style="display:none">
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
      <div style="background-color:#FFCCCC;padding:5px;margin-top:15px;margin-bottom:15px;">
      <table width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFefef">
	    <tr>
	      <td valign="top">
	        Topic Details
	        <br/>
              <input type="hidden" id="topicId">
              <input type="hidden" id="externalId">
			  <br>
              <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td valign="top"><div id="msg_question_trg" style="valign:top"></div></td>
                  <td><div id="questionTrg" style="margin-left:20px"></div></td>
                </tr>
                <tr>
                  <td valign="top"><div id="msg_narrative_trg" style="valign:top"></div></td>
                  <td><div id="narrativeTrg" style="margin-left:20px"></div></td>
                </tr>                
                <tr>
                  <td valign="top" nowrap><div id="msg_answer_type" style="valign:top"></div></td>
                  <td><div id="type" style="margin-left:20px"></div></td>
                </tr>
				<tr>
                  <td valign="top"><div id="msg_note" style="valign:top"></div></td>
                  <td><div id="note" style="margin-left:20px"></div></td>
                </tr>
            </table>
	      </td>
	    </tr>
      </table>
      </div>
    </td>
  </tr>
  <tr>
    <td><a name="green"></a>
      <div id="nuggetMatchingArea" style="display:"></div>
      <div style="display:;padding:5px;background-color: #ffff66;border:1px solid #ff6633;font-size:small;display:none">
      <input type="checkbox" value="1" id="done" onclick="updateDone($('poolList').value, $('topicList').value, this.checked)">&nbsp;
      <label for="done"><span title="Check here if you are done with this topic">Check here if you are done with this topic</span></label>
      </div>
    </td>
  </tr>
</table>
</div>
<br/>


<!-- 
topicSelected: loadMain( $('poolList').value, this.value)
-->
 
<!-- FOOTER -->
<div id="footer"></div>

</body>
</html>
